package com.yimi.yinhepda.entity.sign_manager;

import android.support.annotation.NonNull;

/**
 * 网点接件打卡实体
 *
 * @author Administrator
 * @date 2018/6/1 0001
 */

public class JieJianBreakCardEntity implements Comparable<JieJianBreakCardEntity> {

    //{
    //  "sourceZoneCode": "test01",
    //    "sourceZoneName": "测试总部分拨01",
    //    "destZoneCode": "test03",
    //    "destZoneName": "测试总部网点02",
    //    "shiftsOrder": 1,
    //    "startDate": "06:30",
    //    "endNum": 0,
    //    "endDate": "08:30"
    //}

    /**
     * 接件班次打卡日期
     */
    private String scheduleDate;
    /**
     * 打卡时间
     */
    private String breakTime;
    /**
     * 打卡时间序列号
     */
    private String timeSeq = "";
    private String sourceZoneCode;
    private String sourceZoneName;
    private String destZoneCode;
    private String destZoneName;
    /**
     * 班次
     */
    private int shiftsOrder;
    private String startDate;
    private int endNum;
    private String endDate;
    private boolean isCheck;
    /**
     * 打卡日期：YYYY-MM-DD
     */
    private String breakDate;

    public JieJianBreakCardEntity() {
    }

    public JieJianBreakCardEntity(String scheduleDate, String breakTime, String timeSeq, String sourceZoneCode, String sourceZoneName, String destZoneCode,
                                  String destZoneName, int shiftsOrder, String startDate, int endNum, String endDate) {
        this.scheduleDate = scheduleDate;
        this.breakTime = breakTime;
        this.timeSeq = timeSeq;
        this.sourceZoneCode = sourceZoneCode;
        this.sourceZoneName = sourceZoneName;
        this.destZoneCode = destZoneCode;
        this.destZoneName = destZoneName;
        this.shiftsOrder = shiftsOrder;
        this.startDate = startDate;
        this.endNum = endNum;
        this.endDate = endDate;
    }

    public String getBreakDate() {
        return breakDate;
    }

    public void setBreakDate(String breakDate) {
        this.breakDate = breakDate;
    }

    public String getTimeSeq() {
        return timeSeq;
    }

    public void setTimeSeq(String timeSeq) {
        this.timeSeq = timeSeq;
    }

    public boolean isCheck() {
        return isCheck;
    }

    public void setCheck(boolean check) {
        isCheck = check;
    }

    public String getScheduleDate() {
        return scheduleDate;
    }

    public void setScheduleDate(String scheduleDate) {
        this.scheduleDate = scheduleDate;
    }

    public String getBreakTime() {
        return breakTime;
    }

    public void setBreakTime(String breakTime) {
        this.breakTime = breakTime;
    }

    public String getSourceZoneCode() {
        return sourceZoneCode;
    }

    public void setSourceZoneCode(String sourceZoneCode) {
        this.sourceZoneCode = sourceZoneCode;
    }

    public String getSourceZoneName() {
        return sourceZoneName;
    }

    public void setSourceZoneName(String sourceZoneName) {
        this.sourceZoneName = sourceZoneName;
    }

    public String getDestZoneCode() {
        return destZoneCode;
    }

    public void setDestZoneCode(String destZoneCode) {
        this.destZoneCode = destZoneCode;
    }

    public String getDestZoneName() {
        return destZoneName;
    }

    public void setDestZoneName(String destZoneName) {
        this.destZoneName = destZoneName;
    }

    public int getShiftsOrder() {
        return shiftsOrder;
    }

    public void setShiftsOrder(int shiftsOrder) {
        this.shiftsOrder = shiftsOrder;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public int getEndNum() {
        return endNum;
    }

    public void setEndNum(int endNum) {
        this.endNum = endNum;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    @Override
    public int compareTo(@NonNull JieJianBreakCardEntity o) {
        return o.getTimeSeq().compareTo(this.getTimeSeq());
    }
}
